package com.xhh.hybriddemo.ui.fragment;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;

import com.xhh.hybriddemo.R;
import com.xhh.hybriddemo.base.BaseFragment;
import com.xhh.hybriddemo.ui.adapter.HomeAdapter;

import java.util.List;

import butterknife.BindView;

/**
 * 首页
 * @description
 * @createTime 2017/10/10 16:12
 */

public class HomeFragment extends BaseFragment {
    @BindView(R.id.home_recyclerview)
    RecyclerView mRecyclerView;
    @Override
    protected void init(View rootView) {
        LinearLayoutManager manager = new LinearLayoutManager(getContext());
        mRecyclerView.setLayoutManager(manager);
        HomeAdapter mAdapter = new HomeAdapter(getContext());
        mRecyclerView.setAdapter(mAdapter);

        getData();
    }

    private void getData() {

    }

    @Override
    protected int getContentViewId() {
        return R.layout.fragment_home;
    }
}
